mcp-server-gitlab

by ZephyrDeng
Verified

Gitlab Accept MR Tool

Accept and merge GitLab merge requests for specified projects with customizable options like commit messages, branch removal, and squash merging.

Instructions

接受并合并指定项目的合并请求,支持自定义合并选项。

Input Schema

NameRequiredDescriptionDefault
fieldsNo需要返回的字段路径数组
mergeOptionsNo合并选项
mergeRequestIdYes合并请求 ID
projectIdYes项目 ID

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "fields": { "description": "需要返回的字段路径数组", "items": { "type": "string" }, "type": "array" }, "mergeOptions": { "additionalProperties": false, "description": "合并选项", "properties": { "mergeCommitMessage": { "type": "string" }, "shouldRemoveSourceBranch": { "type": "boolean" }, "squash": { "type": "boolean" } }, "type": "object" }, "mergeRequestId": { "description": "合并请求 ID", "type": "number" }, "projectId": { "description": "项目 ID", "type": "string" } }, "required": [ "projectId", "mergeRequestId" ], "type": "object" }
ID: x6a0een21s